<template>
    <button @click="nihao">你好</button>
</template>

<script>
    export default{
        methods:{
            nihao(){
                var p = new Object();
p.age=11;

var p1 = new Object();
p1.age=11;

if(p.age===p1.age){
  console.log(true);
}else {
console.log(false);
}
if(p===p1){
    console.log(true);
}else{
    console.log(false);
}
            }
        }
    }
</script>